﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CUREDataAccessLayers.Public
{
    /// <summary>
    /// 根据当前时间获取当前班次
    /// </summary>
    public static class SeachTime
    {
        // 获取当前月第一天 
        /// <summary>
        /// 获取当前月第一天
        /// </summary>
        /// <returns>前月第一天</returns>
        public static string StartTime()
        {
            return DateTime.Now.AddDays(-DateTime.Now.Day + 1).ToShortDateString();
        }

        // 获取当前月最后一天 
        /// <summary>
        /// 获取当前月最后一天 
        /// </summary>
        /// <returns>前月最后一天 </returns>
        public static string EndTime()
        {
            return DateTime.Now.AddMonths(1).AddDays(-DateTime.Now.Day).ToShortDateString();
        }
    }
}
